﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Invoicing.Model.Products;
using Invoicing.Command.Products;
namespace Invoicing.Logic.Products
{
    public class WarehouseLogic
    {
        public static WarehouseModel GetModel(int id)
        {
            return WarehouseCommand.GetModel(id);
        }

        public static WarehouseModel CreateNew(WarehouseModel model)
        {
            return WarehouseCommand.CreateNew(model);
        }

        public static void Update(WarehouseModel model)
        {
            WarehouseCommand.Update(model);
        }

        public static WarehouseCollection GetAll()
        {
            return WarehouseCommand.GetAll();
        }

        public static void Delete(int id)
        {
            WarehouseCommand.Delete(id);
        }
    }
}
